package com.xxxy.controller;


import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.xxxy.blockhandler.MoitorBlockHandler;
import com.xxxy.blockhandler.Rdblockhandler;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wsdsg")
public class Rdcontroller {

    @SentinelResource(value = "RdResource",blockHandler = "ltfscjwddsg",
            blockHandlerClass = Rdblockhandler.class)
    @GetMapping("/ltfrd")
    public String ltfjsdsg(@RequestParam(value = "type",required = false)String type,
                           @RequestParam(value = "size",required = false)String size){
        return "我又感觉我行了";
    }
}
